package com.testDemo.hutool;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.junit.jupiter.api.Test;


public class IDUtilTest {
    @Test
    public void snowflakeID(){
        Snowflake snowflake = IdUtil.getSnowflake(31, 31);
        long id = snowflake.nextId();
        System.out.println(id);


    }
}
